package com.ruoyi.project.product.specification.service;

import com.ruoyi.project.product.specification.domain.Specification;

import java.util.List;

public interface ISpecificationService {
    /**
     * 规格查询
     * @param specification
     * @return
     */
    public List<Specification> selectSpecificationList(Specification specification);

    /**
     * 规格新增
     * @param specification
     * @return
     */
    public int insertSpecification(Specification specification);

    /**
     * 根据id查询规格
     * @param specificationId
     * @return
     */
    public Specification selectSpecificationById(Long specificationId);

    /**
     * 规格修改
     * @param specification
     * @return
     */
    public int updateSpecification(Specification specification);

    /**
     * 规格批量删除操作
     * @param ids
     * @return
     * @throws Exception
     */
    public int deleteSpecificationByIds(String ids) throws Exception;


    /**
     * 校验规格名称是否存在
     * @param specification
     * @return
     */
    public String checkSpecificationNameUnique(Specification specification);
}
